package org.yejiali.MongDBTest;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.github.classgraph.json.Id;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;


import java.util.Date;

/**
 * @Author:yejiali
 * @Date:2025/3/31-03-31-15:16
 * @Decsription:org.yejiali.MongDBTest
 * @Version:1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
//@Document(collection = "student")
@Builder
public class Student {
//    @Field("_id")
    private String id;
//    @Field("username")
    private String username;

//    @Field("password")
    private String password;

    //更新时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
//    @Field("updatedTime")
    private Date updatedTime;

    //创建时间
//    @Field("createdTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdTime;
}

